package me.caofeng.service.api;

import me.caofeng.pojo.Response;
import me.caofeng.pojo.SmsCode;

/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.service.api
 * @Description: 通知服务
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-18 17:35
 * @Version: V1.0
 */
public interface INoticeService {
    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/18 17:35
     * @Description:  向指定的手机号发送短信验证码
    */
    Response sendSmsCode(String phone);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/19 11:19
     * @Description: 验证手机号
     * @param code  用户上传的短信验证码和手机号
    */
    Response<String> verifySmsCode(SmsCode code, String userId);

}
